<?php 
	$this->headLink()->prependStylesheet($this->baseUrl().'/css/main.css');
	$this->headLink()->appendStylesheet($this->baseUrl().'/css/validationEngine.jquery.css');
	$this->headLink()->appendStylesheet($this->baseUrl().'/css/'.Zend_Controller_Front::getInstance()->getRequest()->getControllerName().'.css');
	if(Zend_Controller_Front::getInstance()->getRequest()->getModuleName() === 'admin'){
		$this->headLink()->appendStylesheet($this->baseUrl().'/css/admin/'.Zend_Controller_Front::getInstance()->getRequest()->getControllerName().'.css');
	}
	$this->headScript()->prependFile($this->baseUrl().'/js/jquery.validationEngine-en.js');
	$this->headScript()->prependFile($this->baseUrl().'/js/jquery.validationEngine.js');
	$this->headScript()->prependFile($this->baseUrl().'/js/jquery.form.js');
	$this->headScript()->prependFile($this->baseUrl().'/js/jquery.watermark.js');
	$this->headScript()->prependFile('http://code.jquery.com/jquery.min.js');
	echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  <title>Comit&eacute; TiG : Syllabus</title>
  <?php echo $this->headLink()?>
</head>
<body>
<div id="header">
    <div id="header-logo">Syllabus TiG</div>
    <div id="header-navigation">
    	<a href="<?php echo $this->url(array('controller'=>'news'),'default',true) ?>">News</a>
        <a href="<?php echo $this->url(array('controller'=>'syllabus'),'default',true)?>">Syllabus</a>
        <a href="<?php echo $this->url(array('controller'=>'mail'),'default',true)?>">Contact</a>
        <?php foreach ($this->loginMenu() as $link) {
        	echo $link;
        }?>
    </div>
    <div id="header-welcome"><?php echo $this->loggedAs()?></div>
</div>
<div id="content">
<?php echo $this->layout()->content ?>
</div>
<?php echo $this->headScript();?>
</body>
</html>